package com.vtech.ont.tdb.jdbc;


import java.sql.ResultSet;

/**
 * Jena JDBC Connector
 * <pre>
 * <B>Do not support SQL.</B>
 * <B>Queries must be SPARQL.</B>
 * </pre>
 *
 * @author houzhiwei
 * @date 2017 /7/13 21:48
 * @since 1.0
 */
public interface JdbcConnector {

    /**
     * Query.
     *
     * @param sparql query SPARQL string
     * @return result set
     */
    ResultSet query(String sparql);

    /**
     * Update.
     *
     * @param sparql update SPARQL string
     */
    int update(String sparql);
}
